package com.dhcc.bpm.modules.safe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.safe.entity.AppGateway;
import com.dhcc.bpm.modules.safe.vo.AppGatewayVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName AppGatewayMapper
 * @Description 网关访问控制渠道关联表 Mapper 接口
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface AppGatewayMapper extends BaseMapper<AppGateway> {

    /**
     * 自定义分页
     *
     * @param page
     * @param appGateway
     * @return
     */
    List<AppGatewayVO> selectAppGatewayPage(IPage page, AppGatewayVO appGateway);

    /**
     * 批量取消渠道列表
     *
     * @param opcControlId
     * @param toLongArray
     * @return
     */
    int deleteApps(Long opcControlId, @Param("ids") Long[] toLongArray);
}
